{"FunctionName":{"type":"text","text":"Plugins Loader","css":"-fx-font-weight: bold;","w":716,"h":24,"x":9,"y":0,"anchors":{"left":8,"right":1},"events":[]},"FunctionDescription":{"type":"text","text":"Allows you to load the necessary plugins at runtime.","w":716,"h":24,"x":9,"y":16,"anchors":{"left":8,"right":1},"events":[]},"Button":{"type":"button","anchors":{"right":6,"left":6},"events":{"OnClick":[{"~":"GetValue","object":"PluginsList","name":"focusedItem","return":[{"~":"LoadPlugin","pluginname":"$return","return":{"OnDone":[{"~":"Message","text":"Plugin has been successfully loaded!"}],"OnError":[]}}]}]},"text":"Load Selected Plugin","w":82,"h":32,"x":7,"y":260,"disabled":true},"PluginsList":{"type":"listarea","anchors":{"left":6,"right":6},"events":{"OnSelect":[{"~":"SetValue","object":"Button","name":"enabled","value":1},{"~":"GetValue","object":"PluginsList","name":"focusedItem","return":[{"~":"SetValue","object":"Button","name":"text","value":"Load {$return} Plugin"}]}]},"selected":-1,"w":160,"h":219,"x":7,"y":40},"refreshPluginsList":{"type":"timer","time":"5000","nonvisual":true,"events":{"OnExecute":[{"~":"GetFiles","path":"./plugins/","return":[{"~":"Foreach","array":"$return","return":{"Execute":[{"~":"LocalVariable","name":"pluginPath","value":"$return","return":[{"~":"PathInfo","path":"$return","action":"GetExtension","return":[{"~":"IfEquals","first":"$return","second":"plg","return":{"Equals":[{"~":"PathInfo","path":"$pluginPath","action":"GetFileNameWithoutExtension","return":[{"~":"AddValue","object":"PluginsList","name":"itemsText","value":"{$return}\n\r"}]}],"NotEquals":[]}}]}]}]}}]}]},"x":5,"y":305,"repeat":false,"enabled":true}}